package com.share.design.command;

/**
 * author:caifan
 * date:2020/2/3
 */
public class Customer {
    public static void main(String[] args) {
        Barbecuer barbecuer = new Barbecuer();
        Command command1 = new BakeMuttonCommand(barbecuer);
        Command command2 = new BakeChickenWingCommand(barbecuer);
        Command command3 = new BakeBeefCommand(barbecuer);
        Waiter waiter = new Waiter();
        waiter.setOrder(command1);
//        waiter.notifyExecute();

        waiter.setOrder(command2);
//        waiter.notifyExecute();

        waiter.setOrder(command3);
        waiter.notifyExecute();
    }
}
